/**
 * 
 */
package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.ConferenceCategory;
import edu.washington.tcss360.burningpenguins.data.DataObject;

/**
 * @author Rolando Sierra
 *
 */
public class ConferenceCategoryTest {

	/** A category object to use in tests */
	private DataObject my_conference_category;
	
	/** Sets up the data object or tests. */
	@Before
	public void setUp() 
	{
		my_conference_category = new ConferenceCategory();
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.ConferenceCategory#getId()}.
	 */
	@Test
	public void testGetId() 
	{
		my_conference_category.setId(3);
		assertSame("Incorrect Id", my_conference_category.getId(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.ConferenceCategory#getConferenceId()}.
	 */
	@Test
	public void testGetConferenceId() 
	{
		((ConferenceCategory) my_conference_category).setConferenceId(5);
		assertSame("Incorrect Id", ((ConferenceCategory) my_conference_category).getConferenceId(), 5);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.ConferenceCategory#getCategoryId()}.
	 */
	@Test
	public void testGetCategoryId() 
	{
		((ConferenceCategory) my_conference_category).setCategoryId(4);
		assertSame("Incorrect Id", ((ConferenceCategory) my_conference_category).getCategoryId(), 4);
	}

}
